// 蜂窝蜜造平台生成代码，如手工更改，请添加到 .beeignore 忽略生成

package com.fowo.api.entity;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fowo.api.common.annotaion.*;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.Serializable;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

/**
 * PositionFlow1
 */
@DS("ds24")
@Getter
@Setter
@TableName(value = "inventory_placement_variation", autoResultMap = true)
@Schema(title = "仓位流水1")
public class PositionFlow1 implements Serializable {

  /**
   * 生产日期
   */
  @TableField(value = "`production_date`")
  @Schema(title = "生产日期")
  private java.util.Date productionDate;

  /**
   * 操作时间
   */
  @TableField(value = "`operate_time`")
  @Schema(title = "操作时间")
  private java.util.Date operateTime;

  /**
   * 类型
   */
  @TableField(value = "`type`")
  @Schema(title = "类型")
  private String type;

  /**
   * 单据号
   */
  @TableField(value = "`countnum`")
  @Schema(title = "单据号")
  private String countnum;

  /**
   * 品名
   */
  @TableField(value = "`item_id`")
  @JoinField(Product.class)
  @Schema(title = "品名")
  private Long itemId;

  /**
   * 关联单据号
   */
  @TableField(value = "`form_num`")
  @Schema(title = "关联单据号")
  private String formNum;

  /**
   * 更新时间
   */
  @TableField(value = "`last_update_time`")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @Schema(title = "更新时间")
  private java.util.Date lastUpdateTime;

  /**
   * 更新人
   */
  @TableField(value = "`last_update_user`")
  @Schema(title = "更新人")
  private Long lastUpdateUser;

  /**
   * SKU
   */
  @TableField(value = "`sku`")
  @Schema(title = "SKU")
  private String sku;

  /**
   * FNSKU
   */
  @TableField(value = "`fn_sku`")
  @Schema(title = "FNSKU")
  private String fnSku;

  /**
   * 店铺
   */
  @TableField(value = "`shop_id`")
  @JoinField(ShopInfo.class)
  @Schema(title = "店铺")
  private Long shopId;

  /**
   * 仓库
   */
  @TableField(value = "`stock_id`")
  @JoinField(Warehouse.class)
  @Schema(title = "仓库")
  private Long stockId;

  /**
   * 仓位
   */
  @TableField(value = "`bin_id`")
  @JoinField(WarehouseBin.class)
  @Schema(title = "仓位")
  private Long binId;

  /**
   * 锁库数量
   */
  @TableField(value = "`lock_qty`")
  @Schema(title = "锁库数量")
  private java.math.BigDecimal lockQty;

  /**
   * 在途数量
   */
  @TableField(value = "`way_qty`")
  @Schema(title = "在途数量")
  private java.math.BigDecimal wayQty;

  /**
   * 库存数量
   */
  @TableField(value = "`stock_qty`")
  @Schema(title = "库存数量")
  private java.math.BigDecimal stockQty;

  /**
   * 名称
   */
  @TableField(value = "`name`")
  @Schema(title = "名称")
  private String name;

  /**
   * 操作业务名称
   */
  @TableField(value = "`operate`")
  @Schema(title = "操作业务名称")
  private String operate;

  /**
   * 关联唯一操作键
   */
  @TableField(value = "`operate_key`")
  @Schema(title = "关联唯一操作键")
  private String operateKey;

  /**
   * 编号
   */
  @TableField(value = "`id`")
  @TableId(type = IdType.ASSIGN_ID)
  @Schema(title = "编号")
  private Long id;

  /**
   * 项目内码
   */
  @TableField(value = "`project_id`")
  @Schema(title = "项目内码")
  private Long projectId;

  /**
   * 保质期(天)
   */
  @TableField(value = "`shelf_life`")
  @Schema(title = "保质期(天)")
  private Long shelfLife;

  /**
   * 变动目标类型
   */
  @TableField(value = "`to_type`")
  @Schema(title = "变动目标类型")
  private String toType;

  /**
   * 批号
   */
  @TableField(value = "`batch_no`")
  @Schema(title = "批号")
  private String batchNo;

  /**
   * 变动源类型
   */
  @TableField(value = "`from_type`")
  @Schema(title = "变动源类型")
  private String fromType;

  /**
   * 关联制单人
   */
  @TableField(value = "`form_operator`")
  @Schema(title = "关联制单人")
  private String formOperator;

  /**
   * 有效期至
   */
  @TableField(value = "`expiry_date`")
  @Schema(title = "有效期至")
  private java.util.Date expiryDate;

  /**
   * 描述
   */
  @TableField(value = "`description`")
  @Schema(title = "描述")
  private String description;

  /**
   * 删除标记
   */
  @TableField(value = "`del_flag`")
  @TableLogic
  @Schema(title = "删除标记")
  private Boolean delFlag;

  /**
   * 创建人
   */
  @TableField(value = "`create_user`")
  @Schema(title = "创建人")
  private Long createUser;

  /**
   * 创建时间
   */
  @TableField(value = "`create_time`")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @Schema(title = "创建时间")
  private java.util.Date createTime;

  /**
   * 在途数量变更
   */
  @TableField(value = "`change_way_qty`")
  @Schema(title = "在途数量变更")
  private java.math.BigDecimal changeWayQty;

  /**
   * 变动类型
   */
  @TableField(value = "`change_type`")
  @Schema(title = "变动类型")
  private String changeType;

  /**
   * 库存数量变更
   */
  @TableField(value = "`change_stock_qty`")
  @Schema(title = "库存数量变更")
  private java.math.BigDecimal changeStockQty;

  /**
   * 锁库数量变更
   */
  @TableField(value = "`change_lock_qty`")
  @Schema(title = "锁库数量变更")
  private java.math.BigDecimal changeLockQty;

  /**
   * 仓库属性
   */
  @TableField(value = "`wareattribute`")
  @JoinField(Warehouse.class)
  @Schema(title = "仓库属性")
  private Long wareattribute;

  /**
   * 备注
   */
  @TableField(value = "`reamark`")
  @Schema(title = "备注")
  private String reamark;
}
